package testit;



import money.Money;

import static org.junit.Assert.*;
import org.junit.Test;
import org.junit.After;
import org.junit.Before;



public class MoneyTest {
	
	Money neg;
	Money pos1;
	Money pos2;
	
	@Before
	public void setUp() throws Exception {
		
		neg = new Money(-1500);
		pos1 = new Money (5000);
		pos2 = new Money (6000);
	}
	
	@Test
	public void testMoney() {
		assertTrue(neg.equals(neg));
		assertFalse(neg.equals(pos1));
	}

	@Test
	public void testSetValue() {
		assertTrue(neg.equals(neg));
		assertFalse(pos1.equals(pos2));
	}

	@Test
	public void testGetValue() {
		assertTrue(neg.equals(neg));
		assertFalse(pos1.equals(pos2));
	}

	@Test
	public void testChangeToEuro() {
		assertFalse(neg.equals(neg));
		assertTrue(pos1.equals(pos2));
	}

	@Test
	public void testChangeToCurrency() {
		fail("Not yet implemented");
	}
	
	@After
	public void tearDown() throws Exception {
	}

}
